const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const moviesSchema = new Schema({
    title: {
        type: String,
        required: true,
    },
    desc: {
        type: String,
        default: '',
    },
    coverImg: {
        type: String,
        default: '',
    },
    link: {
        type: String,
        default: '',
    },
    categories: {
        type: String,
        default: '',
    },
}, {
    timestamps: true,
});

const Movies = mongoose.model('movies', moviesSchema);

module.exports = Movies;